of core.sharedRepository and umask.
* initremote: Avoid creating a remote that is not encrypted when gpg is
broken.
- * Support --json and --json-error-messages in more commands
- (addunused, dead, describe, dropunused, expire, fix, importfeed, init,
- initremote, log, merge, migrate, reinit, reinject, rekey, renameremote,
- rmurl, semitrust, setpresentkey, trust, unannex, undo, untrust, unused,
- upgrade)
+ * Support --json and --json-error-messages in many more commands
+ (addunused, dead, describe, dropunused, enableremote, expire, fix,
+ importfeed, init, initremote, log, merge, migrate, reinit, reinject,
+ rekey, renameremote, rmurl, semitrust, setpresentkey, trust, unannex,
+ undo, untrust, unused, upgrade)
* log: When --raw-date is used, display only seconds from the epoch, as
documented, omitting a trailing "s" that was included in the output
before.
import qualified Data.Map as M
cmd :: Command
-cmd = command "enableremote" SectionSetup
- "enables git-annex to use a remote"
- (paramPair paramName $ paramOptional $ paramRepeating paramParamValue)
- (withParams seek)
+cmd = withAnnexOptions [jsonOptions] $
+ command "enableremote" SectionSetup
+ "enables git-annex to use a remote"
+ (paramPair paramName $ paramOptional $ paramRepeating paramParamValue)
+ (withParams seek)
seek :: CmdParams -> CommandSeek
seek = withWords (commandAction . start)
# OPTIONS
-Most options are not prefixed by a dash, and set parameters of the remote,
-as shown above.
+* `--json`
-Also, the [[git-annex-common-options]](1) can be used.
+ Enable JSON output. This is intended to be parsed by programs that use
+ git-annex.
+
+* `--json-error-messages`
+
+ Messages that would normally be output to standard error are included in
+ the JSON instead.
+
+* Also, the [[git-annex-common-options]](1) can be used.
# SEE ALSO